import React, { useState, useEffect } from 'react'
import { View, RichText } from '@tarojs/components'
import { AtList, AtListItem, AtButton, AtToast } from "taro-ui"

import './index.less'
import "taro-ui/dist/style/components/list.scss";


export default (props: any) => {
  const { buyNotice,detail } = props.data
  return (
    <View className='intro'>
      <View className='contRich'>
        <View className='title'>
          <View className='txt'>购买须知</View>
        </View>
        <RichText  nodes={buyNotice} />
      </View>
      <View className='contRich contRich2'>
        <View className='title'>
          <View className='txt'>商品详情</View>
        </View>
        <RichText nodes={detail} />
      </View>
    </View>
  )
}
